<template>
  <div>
    <div class="space"></div>
    <div class="recommend-title">周末去哪儿</div>
    <div  class="recommend-content" v-for="item of list" :key="item.id">
      <div class="recommend-content-img" aspectratio w-565-214>
          <img :src="item.imgUrl" alt="" aspectratio-content>
      </div>
      <div class="recommend-info">
        <h4>{{item.title}}</h4>
        <div class="recommend-desc">{{item.desc}}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props: {
    list: {
      type: Array
    }
  }
}
</script>

<style lang="stylus" scoped>
  @import '~styles/mixins.styl'
  .space
    height 14px
    background-color #ddd
  .recommend-title
    font-size 30px
    color #333
    box-sizing border-box
    padding 10px 0
    text-indent 18px
    margin-bottom 10px
  .recommend-content
    box-sizing border-box
    padding 0px 0 8px
    background-color #f5f5f5
    .recommend-info
      box-sizing border-box
      padding 14px
      background-color #fff
      min-width 0
      h4
        font-size 30px
        color #333
        ellipsis()
        line-height 50px
        font-weight normal
        max-width 80%
        text-indent 14px
      .recommend-desc
        font-size 24px
        line-height 44px
        color #757575
        ellipsis()
        max-width 80%
        text-indent 14px
</style>
